export const MicroAppDataPool: any = {};
export default {
    init(data: any = {}) {
        Object.keys(data).forEach(key => this.set(key, data[key]));
    },
    set(key: string, value: any) {
        MicroAppDataPool[key] = value;
    },
    get(key: string | undefined) {
        return key ? MicroAppDataPool[key] : MicroAppDataPool;
    }
}